package com.heima.model.user.dtos;

import lombok.Data;

/**
 * @author lzq
 * @data 2023/5/9 19:11
 */
@Data
public class AuthDto {
    //当前页
    private Integer page;
    //每页显示条数
    private Integer size;

    private Integer status;

    private Integer id;

    private String msg;

    //校验参数
    public void checkParam() {
        if (this.page == null || this.page < 0) {
            setPage(1);
        }
        if (this.size == null || this.size < 0 || this.size > 100) {
            setSize(10);
        }
    }
}
